package com.jeehentor.ai.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jeehentor.ai.entity.AiChatSession;
import com.jeehentor.ai.mapper.AiChatSessionMapper;
import com.jeehentor.ai.service.AiChatSessionService;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description : TODO
 * @Author : wzd
 * @Date : 2025/4/18 10:13
 * @Version : 1.0
 **/
@Service
public class AiChatSessionServiceImpl extends ServiceImpl<AiChatSessionMapper, AiChatSession>
        implements AiChatSessionService {

    @Override
    public List<AiChatSession> getAll() {
        return list(Wrappers.lambdaQuery(AiChatSession.class).orderByDesc(AiChatSession::getCreateTime));
    }
}
